@extends('admin.index')
@section('title','分类添加')
 @section('con')
 <div class="row">
 	@if (count($errors) > 0)
	    <div class="alert alert-danger">
	        <ul>
	            @foreach ($errors->all() as $error)
	                <li>{{ $error }}</li>
	            @endforeach
	        </ul>
	    </div>
	@endif
    <div class="col-lg-6 col-lg-offset-3">
        <form role="form" method="post" action="{{url('/admin/type/update')}}">
            <div class="form-group">
                <label>分类名</label>
                <input class="form-control" type="text" name="type" value="{{$res[0]->type}}">
            </div>
                <input  type="hidden" name="id" value="{{$res[0]->id}}">
            {{ csrf_field() }}
            <button class="btn btn-default" type="submit">提交</button>
            <button class="btn btn-default" type="reset">重置</button>
        </form>
    </div>
 </div>  
 @endsection
